<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%
String path=request.getContextPath();
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>"> 
	<title>博客后台模板 </title> 
	<meta charset="UTF-8">
	
    <link rel="shortcut icon" href="static/img/logo.png">           
    <link rel="stylesheet" href="static/plugin/layui/css/layui.css">
    <link rel="stylesheet" href="static/css/back.css">
    <link rel="stylesheet" href="static/plugin/font-awesome/css/font-awesome.min.css">
    
    <!-- 留给别的页面去覆盖,让其他页面能引入自已的css或js -->
	<rapid:block name="frame-header-style"></rapid:block>
	<rapid:block name="frame-header-script"></rapid:block>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">
				<a href="/admin" style="color: #009688;"> 博客后台 </a>
			</div>
			<!-- 头部区域（可配合layui已有的水平导航） -->
			<ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item"><a href="/" target="_blank">前台</a></li>
				<li class="layui-nav-item"><a href="javascript:;">新建</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="/admin/article/insert">文章</a>
						</dd>
						<dd>
							<a href="/admin/page/insert">页面</a>
						</dd>
						<dd>
							<a href="/admin/category/insert">分类</a>
						</dd>
						<dd>
							<a href="/admin/notice/insert">公告</a>
						</dd>
						<dd>
							<a href="/admin/link/insert">链接</a>
						</dd>
					</dl></li>
			</ul>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;">
						 <img src="user/photo/${session_user.userId}" class="layui-nav-img">
						${session_user.userNickname}
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="user/show/${session_user.userId}">基本资料</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="user/logout">退出</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item layui-nav-itemed"><a class=""
						href="javascript:;">文章</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="article/1">全部文章</a>
							</dd>
							<dd>
								<a href="article/go">写文章</a>
							</dd>
							<dd>
								<a href="category">全部分类</a>
							</dd>
							<dd>
								<a href="tag">全部标签</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">页面</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="page">全部页面</a>
							</dd>
							<dd>
								<a href="page/add">添加页面</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a class="" href="javascript:;">
							链接 </a>
						<dl class="layui-nav-child">
							<dd>
								<a href="link">全部链接</a>
							</dd>
							<dd>
								<a href="link/add">添加链接</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">公告</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="notice">全部公告</a>
							</dd>
							<dd>
								<a href="notice/add">添加公告</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="comment/1"> 评论 </a></li>
					<li class="layui-nav-item"><a class="" href="javascript:;">
							用户 </a>
						<dl class="layui-nav-child">
							<dd>
								<a href="user">全部用户</a>
							</dd>
							<dd>
								<a href="user/add">添加用户</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">设置</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="menu">菜单</a>
							</dd>
							<dd>
								<a href="options">主要选项</a>
							</dd>
						</dl></li>
				</ul>
			</div>
		</div>

		<div class="layui-body">
			<div style="padding: 15px;">
				<!-- 主体内容,要留给别的页面覆盖 -->
				<rapid:block name="frame-content">
					内容主体区域,不同的页面要分别进行不同的编写
				</rapid:block>
			</div>
 		</div>

		<div class="layui-footer">
			<!-- 底部固定区域 -->
			? 这里展示一些提示性信息 <a href="#" target="_blank">其他导航</a> / <a href="#"
				target="_blank">其他导航</a>
		</div>
	</div>

	<script src="static/js/jquery.min.js"></script>
	<script src="static/plugin/layui/layui.all.js"></script>
	<script src="static/js/back.js"></script>
	<script >
	$(function() {
		setInterval(function(){
			$.ajax({
				url:"user/loginUser",
				type:"POST",
				async:false,
				cache:false,
				success:function(){
				}
			});
		},100000);
	})
	
	</script>
	<!-- 留给别的页面去覆盖,让它们可以引入自已的js -->
	<rapid:block name="frame-footer-script"></rapid:block>

</body>
</html>